home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / flashdoc.lzh / BACKUP.DO < prev    next >
Text File  |  1992-02-06  |  2KB  |  68 lines

  1. >** - top of file -
  2.  
  3. backupdo.do V. 2.0.0 02/04/92
  4.  
  5. Copyright (C) 1992 by Al Fasoldt
  6.  
  7. - Documentation -
  8.  
  9. (You can run this script with the documentation in place, but 
  10. for faster execution, save this copy in a separate folder and 
  11. run this script with the documentation removed.)
  12.  
  13. BACKUPDO updates all scripts in a backup archive each time it 
  14. is run.  If BACKUP.DO is run from a master script, as intended,
  15. backups will be performed each time the main script is run. This
  16. can be very handy if you like to write or try out new DO files, 
  17. since you'll always have a backup copy.
  18.  
  19. BACKUPDO takes advantage of the "update" command in both
  20. ARC.TTP and LHARC.TTP, the two most common archivers for the ST.
  21. The "update" command does two things:
  22.  
  23. 1. It updates all newer files that have the same name.  In other
  24. words, if THISFILE.DO has a later modification date than the
  25. archived copy, the newer version is placed in the archive, and
  26. the older version is deleted from the archive.
  27.  
  28. 2. It archives all files that are not present in the archive.
  29.  
  30. If the archive does not already exist, BACKUPDO creates it.
  31.  
  32. BACKUPDO needs to have ARC.TTP or LHARC.TTP in the same
  33. directory that it was run from. You can use either archiving
  34. program; the script looks first for LHARC, but will use ARC as
  35. the second choice.
  36.  
  37. If you want to keep ARC.TTP or LHARC.TTP in a separate folder
  38. from the path that BACKUPDO is on, place the pathway in front
  39. of the "LHARC.TTP" or "ARC.TTP" filename below.
  40.  
  41. DO files are archived in a file named BACKUPDO.LZH or
  42. BACKUPDO.ARC.
  43.  
  44. - End of documentation -
  45.  
  46. |
  47.  
  48. >** start|
  49. >op lharc.ttp|
  50. >if ~op jmp arc|
  51. >if op ex lharc.ttp u backupdo.lzh *.do|
  52. >jmp done|
  53. >L: arc|
  54. >op arc.ttp|
  55. >if ~op jmp error|
  56. >ex arc.ttp u backupdo.arc *.do|
  57. >L: done|
  58. >ty  |
  59. >ty Do scripts backed up successfully!|
  60. >ty|>ty|
  61. >end|
  62. >L: error|
  63. >ty  |
  64. >ty Script halted. No archiving program found.|
  65. >ty|>ty|
  66. >end|
  67.  
  68.